<?php
if(!isset($ajax)) {
	$objCategory	= new Category();	
	$promCate	= $objCategory->getTag(); 	
	$promCategoryId	= $promCate[0]['categoryid'];
	$this->view->promCate	= $promCate;
	
} else {
	$promCategoryId	= Ecore_Function::hex2Dec($objRequest->getParam('id', null));
}
$promSubId			= $objRequest->getParam('sub', 0);
$promOffset			= 0;
$promLimit			= $variable['PROMOTION_TOP_LIMIT']['val'];
$promTotal			= 0;
$objPromotion 		= new Promotion();
$arrPromotion		= $objPromotion->getFeature($promCategoryId, $promSubId, $promOffset, $promLimit, $promTotal);
$this->view->arrPromotion	= $arrPromotion;
$this->view->promTotal		= $promTotal;
$this->view->promLimit		= $promLimit;